package apiServer

import (
	"api/router"
	"api/utils"
	"fmt"
	"github.com/gin-gonic/gin"
)

type ApiServer struct {
	server *gin.Engine
}


func NewServer() {

	gin.SetMode(utils.GetSettings().AppMode)

	server := router.InitRouter()

	server.Run(fmt.Sprintf(":%d", utils.GetSettings().HttpPort))
}
